(function(angular){
    var app = angular.module("myApp",[]);
    app.filter('trustHtml', function ($sce) {
        return function (input) {
            return $sce.trustAsHtml(input);
        }
    });
    app.controller("myCtrl0",["$scope","$routeParams",function($scope,$routeParams){
    }])
    app.controller("myCtrl",["$scope","$http",function($scope,$http){
        $http({
            method:"get",
            url:"http://139.199.192.48:9090/api/getinlanddiscount"
        })
            .then(function(data){
                $scope.data = data.data.result;
            })
        $scope.location=function(id){
            location.href='details.html?productid='+ id;
        }
    }])

})(angular);